home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tex / inputs / apsabstract.sty < prev    next >
Encoding:
Text File  |  1991-05-21  |  15.0 KB  |  429 lines

  1. % APS abstract style.  June 26, 1989.
  2. % Written by
  3. %    Charles Karney
  4. %    Plasma Physics Laboratory  Phone:    +1 609 243 2607
  5. %    Princeton University       MFEnet:   Karney@PPC.MFEnet
  6. %    PO Box 451                 Internet: Karney%PPC.MFEnet@NMFECC.LLNL.GOV
  7. %    Princeton, NJ 08543-0451   Bitnet:   Karney%PPC.MFEnet@LBL.Bitnet
  8. % with contributions from Cris Barnes and Tom Murphy.
  9.  
  10. \typeout{Document Substyle 'APS abstract'.  Released 26 June 1989}
  11.  
  12. % ******************** User documentation ********************
  13.  
  14. % APSABSTRACT: LaTeX style for abstracts submitted to American Physical
  15. % Society conferences.
  16.  
  17. % Summary.  This following is a minimal abstract.
  18.  
  19. %   \documentstyle[11pt,apsabstract,dpp1989]{article}
  20.  
  21. %   \submittedby{Charles F. F. Karney}
  22. %   \submittedaddress{Princeton Plasma Physics Laboratory\\
  23. %   P.O. Box 451\\Princeton, NJ 08543-0451}
  24. %   \category{1.6/T}
  25. %   \theory                  %  or \experiment or both
  26. %   \preferposter            %  or \preferoral or \nopreference
  27. %   \title{Current drive efficiency in a hot plasma\thanks
  28. %   {This work supported by DoE contract No.\ DE--AC02--76--CHO--3073.}}
  29. %   \author{C. F. F. Karney and B. J. Braams}
  30. %   \affiliation{Princeton University}
  31.  
  32. %   \begin{document}
  33. %   \maketitle
  34. %   Body of abstract.  (This can include equations, bibliography, etc.)
  35. %   \end{document}
  36.  
  37. % Details.
  38.  
  39. % Specify apsabstract,dpp1989 (in this order) as optional arguments to
  40. % \documentstyle, e.g.,
  41. %   \documentstyle[11pt,apsabstract,dpp1989]{article}
  42. % (apsabstract contains the formatting commands.  dpp1989 includes the
  43. % information specific by the 1989 DPP meeting.)  11pt is the prefered size.
  44.  
  45. % Place various declarations between \documentstyle and \begin{document}.
  46. % These are mostly self explanatory:
  47.  
  48. %   \invitedabstract: If this is an invited abstract (print in landscape
  49. %     mode).  Many of the fields (\category, \preferposter, etc.) are
  50. %     irrelevant and are ignored.
  51.  
  52. %   \submittedby{name}: Name of APS member submitting abstract
  53. %   \submittedaddress{address}: and his address (lines separated with \\)
  54. %   \category{number}: The subject category number
  55.  
  56. %   \theory or \experiment or both: To get one of the experiment/theory
  57. %     boxes checked (optional)
  58. %   \preferposter or \preferoral or \nopreference: Ditto
  59.  
  60. %   \placement{placment instructions}: optional
  61. %   \specialfacilities{special facilities}: optional
  62. %   \otherrequests{other requests}: optional
  63.  
  64. %   \title{title}: The title of the abstract.  Probably should include
  65. %     something like
  66. %       \thanks{This work supported by DoE contract 
  67. %               No.\ DE--AC02--76--CHO--3073.}
  68. %   \author{authors}: Author list punctuated with commas (and `and')
  69. %   \affiliation{Princeton University}: Affiliation
  70.  
  71. % For papers with authors from more than one institution, you can use
  72. % footnotes to indicate the affiliation of the minorities (via \thanks).  If
  73. % you want to list multiple affiliations in the heading, then use
  74. % \affiliation to specify the last institution and include the other
  75. % institutions in the author list (in italics).  Thus
  76. %   \author{A. Shadrack, B. Misheck, 
  77. %           C. Abednego, {\it Princeton University}, and
  78. %           N. Nebuchadnezzar}
  79. %   \affiliation{Babylonian Institute of Furnaces}
  80.  
  81. % Stick \maketitle between \begin{document} and the body of the abstract.
  82.  
  83. % Pretty much anything can go into the body of the abstract.  LaTeX thinks
  84. % you are merely typing an ordinary paper that happens to have a small
  85. % \textheight and \texwidth.
  86.  
  87. % LaTeX normally sets footnotes in \footnotesize.  This is probably too
  88. % small considering that APS abstracts get reduced when printed in the
  89. % Bulletin of the APS.  Therefore, both footnotes and references are set in
  90. % \referencesize, which apsabstract.sty defines to be \normalsize.  If you
  91. % would like these set smaller, try
  92. %   \renewcommand{\referencesize}{\small}
  93.  
  94. % You'll know if your abstract is too long if it spills over onto a second
  95. % page.  Try changing to 10pt type.  Or else, reduce the baseline separation
  96. % with \renewcommand{\baselinestretch}{0.9}.
  97.  
  98. % A complete abstract is given in tex$doc:apstest.tex.
  99.  
  100. % ******************** End of user documentation ********************
  101.  
  102. % SEE END OF FILE FOR INSTALLER'S INSTRUCTIONS
  103.  
  104. \textwidth=120mm       \textheight=105mm    % APS rules
  105.  
  106. \oddsidemargin=25mm    \topmargin=-15mm
  107. \parskip=0pt
  108. \headheight=31mm
  109. \headsep=5ex
  110. \onecolumn \raggedbottom \sloppy
  111. \def\baselinestretch{1}
  112.  
  113. \newif\if@invited \@invitedfalse
  114. \def\invitedabstract{\@invitedtrue
  115.   \textheight=4.7in \textwidth=8.2in   % Invited abstracts are larger
  116.   \headsep=2ex                         % The title etc. is part of the header
  117.   \parindent=0pt                       % First line of body is not indented
  118.   \headheight=40mm
  119.   \topmargin=0mm
  120.   \oddsidemargin=11mm
  121. }
  122.  
  123. % All the field declarations
  124.  
  125. \def\conference#1{\gdef\@conference{#1}}              \conference{}
  126. \def\location#1{\gdef\@location{#1}}                  \location{}
  127. \def\date#1{\gdef\@date{#1}}                          \date{}
  128. \def\mailto#1{\gdef\@mailto{#1}}                      \mailto{}
  129. \def\receiptdate#1{\gdef\@receiptdate{#1}}            \receiptdate{}
  130.  
  131. \def\category#1{\gdef\@category{#1}}                  \category{}
  132. \def\submittedby#1{\gdef\@submittedby{#1}}            \submittedby{}
  133. \def\submittedaddress#1{\gdef\@submittedaddress{#1}}  \submittedaddress{}
  134.  
  135. \def\title#1{\gdef\@title{#1}}                        \title{}
  136. \def\author#1{\gdef\@author{#1}}                      \author{}
  137. \def\affiliation#1{\gdef\@affiliation{#1}}            \affiliation{}
  138.  
  139. \def\experiment{\gdef\@experiment{y}}
  140. \def\theory{\gdef\@theory{y}}
  141. \gdef\@experiment{}\gdef\@theory{}
  142.  
  143. \def\preferposter
  144.    {\gdef\@preferposter{y}\gdef\@preferoral{}\gdef\@nopreference{}}
  145. \def\preferoral
  146.    {\gdef\@preferposter{}\gdef\@preferoral{y}\gdef\@nopreference{}}
  147. \def\nopreference
  148.    {\gdef\@preferposter{}\gdef\@preferoral{}\gdef\@nopreference{y}}
  149. \gdef\@preferposter{}\gdef\@preferoral{}\gdef\@nopreference{}
  150.  
  151. \def\placement#1{\gdef\@placement{#1}}                \placement{}
  152. \def\specialfacilities#1{\gdef\@specialfacilities{#1}}\specialfacilities{}
  153. \def\otherrequests#1{\gdef\@otherrequests{#1}}        \otherrequests{}
  154.  
  155. % Most of the formatting goes into the header and footer.
  156. % Define the myheadings to get the top and bottom typeset
  157.  
  158. \def\ps@myheadings{\let\@mkboth\@gobbletwo
  159. \def\@oddhead{\@maketop}\def\@oddfoot{\@makebottom}%
  160. \def\@evenhead{}\def\@evenfoot{}}
  161. \pagestyle{myheadings}
  162.  
  163. % Need to define \pagenumbering even though pagestyle is empty
  164. %  in order to get \thepage defined
  165.  
  166. \pagenumbering{arabic}
  167.  
  168. % Boxes with/without X's
  169.  
  170. \newbox\@emptybox   \newbox\@fullbox
  171.  
  172. \setbox\@emptybox=\hbox{\lower1.5pt
  173.    \hbox{\unitlength=10pt\begin{picture}(1,1)(0,0)
  174.    \put(0,0){\framebox(1,1){}}\end{picture}}}
  175. \setbox\@fullbox=\hbox{\lower1.5pt
  176.    \hbox{\unitlength=10pt\begin{picture}(1,1)(0,0)
  177.    \put(0,0){\line(1,1){1}}\put(1,0){\line(-1,1){1}}
  178.    \put(0,0){\framebox(1,1){}}\end{picture}}}
  179.  
  180. \def\@checkedbox{\copy\@fullbox}
  181. \def\@uncheckedbox{\copy\@emptybox}
  182.  
  183. \def\@choosebox#1{\ifx\@empty#1\@uncheckedbox\else\@checkedbox\fi}
  184.  
  185. % Top matter
  186.  
  187. \def\@maketop{\hbox to \hsize{\hss
  188.     \vbox{\if@invited\else\hsize=180 mm \fi
  189.           \xpt\baselineskip=12pt\maketop}\hss}}
  190. \def\maketop{%
  191.   {\centering
  192.     {\xipt\bf\if@invited Invited \fi\@conference\\[1ex]
  193.       \ifx\@empty\@location  \else\@location, \fi  % Location field is optional
  194.       \@date}\\[2ex]
  195.     \if@invited\vspace{7ex}\noindent\box\@titlebox\else
  196.     Category Number and Subject%
  197.     \ifx\@empty\@category\  \rule{5cm}{0.4pt} \relax\else
  198.           : {\xipt \@category} \fi\\[1ex]
  199.     \noindent
  200.     \@choosebox{\@theory}\ Theory\qquad
  201.     \@choosebox{\@experiment}\ Experiment \\ \fi
  202.   }}
  203.  
  204. % Bottom matter
  205.  
  206. \def\@makebottom{\if@invited\else\hbox to \hsize{\hss
  207.    \vbox{\hsize=180 mm \xpt\baselineskip=12pt \makebottom}\hss}\fi}
  208. \def\makebottom{%
  209.   {\vspace{\headsep}
  210.     \def\rrule{\penalty0
  211.     \rule{0pt}{15pt}\rule{57mm}{0.4pt}}\parindent=0pt\parskip=0pt
  212.     \hspace{18mm}
  213.     \begin{minipage}[t]{65mm}\raggedright\sloppy
  214.       \def\@para##1{\par\noindent\hangindent=6mm
  215.       \hbox to \hangindent{##1\hfil}}
  216.       \@para{\@choosebox{\@preferposter}}Prefer Poster Session
  217.       \@para{\@choosebox{\@preferoral}}Prefer Oral Session
  218.       \@para{\@choosebox{\@nopreference}}No Preference
  219.       \@para{\@choosebox{\@placement}}This poster/oral should be
  220.               placed in the following grouping:
  221.       \@para{}\ifx\@empty\@placement\rrule\rrule\else
  222.               {\xipt\bf \@placement}\fi
  223.       \@para{\@choosebox{\@specialfacilities}}Special Facilities Requested
  224.       \@para{}\ifx\@empty\@specialfacilities\rrule\rrule\else
  225.              {\xipt\bf \@specialfacilities}\fi
  226.       \@para{\@choosebox{\@otherrequests}}Other Special Requests
  227.       \@para{}\ifx\@empty\@otherrequests\rrule\rrule\else
  228.              {\xipt\bf \@otherrequests}\fi
  229.     \end{minipage}%
  230.     \hspace{25mm}%
  231.     \begin{minipage}[t]{65mm}
  232.       Submitted by:\par
  233.       \vspace{30pt}\hrule
  234.       (\strut Signature of APS Member) \par
  235.       \begin{flushleft}
  236.         \@submittedby\\\@submittedaddress
  237.       \end{flushleft}
  238.     \end{minipage}
  239.   }
  240.   \par\vspace{10pt}\noindent
  241.   {\xipt
  242.     This form, or a reasonable facsimile, plus {\large\bf TWO XEROX COPIES},
  243.     must be received by {\large\bf NO LATER THAN NOON}, \@receiptdate\
  244.     at the following address:\par}
  245.   \begin{flushleft}\leftskip=18mm\relax
  246.     \@mailto
  247.   \end{flushleft}
  248. }
  249.  
  250. \let\abstract\relax     % So text can optionally be put in abstract environment
  251.  
  252. % Set the title
  253.  
  254. \def\maketitle{\par
  255.  \begingroup
  256.    \def\@makefnmark{\hbox   
  257.        to 0pt{$^{\@thefnmark}$\hss}}   
  258.    \if@twocolumn               
  259.      \twocolumn[\@maketitle]   
  260.      \else \newpage
  261.      \global\@topnum\z@        % Prevents figures from going at top of page.
  262.      \@maketitle \fi\thispagestyle{myheadings}\@thanks
  263.  \endgroup
  264.  \let\maketitle\relax
  265.  \let\@maketitle\relax
  266.  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax\@gobblecr}
  267.  
  268. \long\def\@gobble#1{}  % So gobble can discard a \par
  269.  
  270. \newbox\@titlebox
  271.  
  272. \def\@maketitle{\if@invited
  273.   \newpage\par\global\setbox\@titlebox
  274.     \vbox{\hsize\columnwidth \@parboxrestore
  275.      {\large\bf \@title.}\strut\par
  276.      {\sc\@author}, {\it\@affiliation}\strut\par}
  277. \else
  278.   \newpage\par\noindent\kern .67in % 8 spaces at 12 chars/in
  279.   \relax{\large\bf\@title}\@.
  280.   {\sc\@author}, {\it\@affiliation}---%
  281. \fi}
  282.  
  283. % Footnotes are handled by putting them in \box\@footins.  This is spat out
  284. % either by the bibliography or by \end{document}
  285.  
  286. \newbox\@footins  % Declare a box for the footnotes
  287.  
  288. \def\thefootnote{\fnsymbol{footnote}}  % Use symbols for footnotes
  289.  
  290. % Redefine \LaTeX's \@footnotetext
  291. \long\def\@footnotetext#1{\global\setbox\@footins
  292.     \vbox{\unvbox\@footins
  293.     \referencesize
  294.     \hsize\columnwidth \@parboxrestore
  295.    \edef\@currentlabel{\csname p@mpfootnote\endcsname\@thefnmark}\@makefntext
  296.      {\rule{\z@}{\footnotesep}\ignorespaces #1\strut}}}
  297.  
  298. \long\def\@makefntext#1{\parindent 1em\noindent
  299.             $^{\@thefnmark}$#1}
  300.  
  301. % The citations handled with superscript numbers as in aip style.
  302. % In addition, we have to put out the footnotes.
  303.  
  304. \def\newblock{}
  305.  
  306. \def\thebibliography#1{\vskip\skip\footins\footnoterule\unvbox\@footins
  307. \setcounter{biblionum}{0}\frenchspacing\referencesize}
  308. \let\endthebibliography=\par
  309.  
  310. \@definecounter{biblionum}
  311. \def\@bibnum{\arabic{biblionum}}
  312. \def\bibitem#1{\stepcounter{biblionum}\par\noindent
  313.    $\m@th^{\@bibnum}$%
  314.    \if@filesw \immediate\write\@auxout
  315.        {\string\bibcite{#1}{\@bibnum}}\fi\ignorespaces}
  316. % Still using aip style citations
  317. \def\@cite#1#2{\unskip\nobreak\relax
  318.     \def\@tempa{$\m@th^{\hbox{\the\scriptfont0 #1}}$}%
  319.         \futurelet\@tempc\@citexx}
  320. \let\citea=\@cite
  321. \def\@citexx{\ifx.\@tempc\let\@tempd=\@citepunct\else
  322.         \ifx,\@tempc\let\@tempd=\@citepunct\else
  323.          \let\@tempd=\@tempa\fi\fi\@tempd}
  324. \def\@citepunct{\@tempc\edef\@sf{\spacefactor=\the\spacefactor\relax}\@tempa
  325.          \@sf\@gobble}
  326. \def\citenum#1{{\def\@cite##1{##1}\cite{#1}}}
  327.  
  328. % Add check for \@footins in \enddocument
  329. \def\enddocument{\@checkend{document}
  330. \ifvoid\@footins\else\vskip\skip\footins\footnoterule\unvbox\@footins\fi
  331. \clearpage\begingroup
  332. \if@filesw \immediate\closeout\@mainaux
  333. \def\global\@namedef##1##2{}\def\newlabel{\@testdef r}%
  334. \def\bibcite{\@testdef b}\@tempswafalse \makeatletter\input \jobname.aux
  335. \if@tempswa \@warning{Label(s) may have changed.  Rerun to get
  336. cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end}
  337.  
  338. \let\referencesize\normalsize
  339.  
  340. \endinput
  341.  
  342. ******************** INSTALLER'S INSTRUCTIONS ********************
  343.  
  344. Put this file, apsabstract.sty into your standard texinputs directory.  You
  345. might want to extract the user documentation from the top of this file,
  346. edit it where appropriate and place it somewhere canonical (in your Local
  347. Guide, INFO system, or wherever).  You need to create a file describing the
  348. conference.  Here is a typical example, dpp1989.sty, for the 1989 Division
  349. of Plasma Physics meeting.  The format should be obvious.
  350.  
  351. ******************** dpp1989.sty ********************
  352.  
  353. \conference{Abstract Submitted for the Thirty-first Annual Meeting\\
  354.         Division of Plasma Physics}
  355.  
  356. \date{November 13--17, 1989}
  357.  
  358. \location{Anaheim, California}    % This is optional
  359.  
  360. \mailto{Saralyn Stewart \\
  361. Institute for Fusion Studies \\
  362. RLM 11.234 \\
  363. The University of Texas at Austin \\
  364. Austin, TX\ \ 78712\\
  365. Telephone: (512) 471-4378}
  366.  
  367. \receiptdate{Monday, July 10, 1989}
  368.  
  369. ******************** End of dpp1989.sty ********************
  370.  
  371. Here is the example refered to in the user documentation,
  372. tex$doc:apstest.tex:
  373.  
  374. ******************** apstest.tex ********************
  375.  
  376. % Test of APS abstract styles
  377.  
  378. \documentstyle[11pt,apsabstract,dpp1989]{article}
  379.  
  380. \newcommand{\DOEcredit}{This work supported by DoE contract
  381. No.\ DE--AC02--76--CHO--3073.}
  382.  
  383. \submittedby{Charles F. F. Karney}
  384. \submittedaddress{Princeton Plasma Physics Laboratory\\
  385. P.O. Box 451\\Princeton, NJ 08543-0451}
  386.  
  387. \category{1.6/T}
  388.  
  389. \theory                  % one or both of \theory or \experiment
  390. \preferposter            % one of \preferposter or \preferoral or \nopreference
  391.  
  392. % These three are optional
  393. \placement{next to paper by B. J. Braams and C. F. F. Karney}
  394. \specialfacilities{35mm movie projector}
  395. \otherrequests{Please schedule on Monday morning}
  396.  
  397.  
  398. \title{Current drive efficiency in a hot plasma\thanks{\DOEcredit}}
  399.  
  400. \author{C. F. F. Karney and B. J. Braams}
  401.  
  402. \affiliation{Princeton University}
  403.  
  404. \begin{document}
  405.  
  406. \maketitle
  407.  
  408. The efficiency of current drive by rf waves may be computed by means of a
  409. response function \cite{AntChu82}.  Here we use the response function
  410. calculated for a relativistic plasma \cite{BraKar87} to calculate the
  411. efficiency of current drive by lower-hybrid and electron-cyclotron waves in
  412. a hot reactor plasma.  The results are compared to those obtained by
  413. neglecting either relativistic effects or the self-consistent reaction of
  414. the bulk on the tail electrons.
  415.  
  416. \begin{thebibliography}{1}
  417.  
  418. \bibitem{AntChu82} T. M. Antonsen and K. R. Chu, Phys.\ Fluids {\bf 25},
  419. 1295 (1982).
  420.  
  421. \bibitem{BraKar87} B. J. Braams and C. F. F. Karney, Phys.\ Rev.\ Lett.\
  422. {\bf 59}, 1817 (1987).
  423.  
  424. \end{thebibliography}
  425.  
  426. \end{document}
  427.  
  428. ******************** End of apstest.tex ********************
  429.